package pt.isel.pdm.yamba;
import java.util.TreeMap;
import winterwell.jtwitter.Twitter.Status;
public class Post extends TreeMap<String, Object>{
	private static final long serialVersionUID = 4614079877383276485L;
	public Post(Status s){
		put("id", s.id + "");
		put("fulltext", s.text);
		put("text", s.text.length() > 44 ? s.text.substring(0, 40) : s);
		put("author", s.user.name);
		put("fulltime", s.createdAt.toString());
		put("time", (System.currentTimeMillis() - s.createdAt.getTime()) + "ms");
	}
}
